﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage/MasterPage.master" AutoEventWireup="true" CodeFile="StatTrain.aspx.cs" Inherits="Manage_StatTrain" %>
<%@ Register Src="~/Manage/CmsMessageBox.ascx" TagName="MessageBox" TagPrefix="cms" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script type="text/javascript">
        $(document).ready(function () {
            $('#<%=Export.ClientID %>').click(function () {
                var ds = [{ 'Count': $('#<%=Districts.ClientID %>').children().children().children().children(':checked').size(),
                    'Type': 'C', 
                    'ErrorMessage': '请选择统计的县区。'
                }];

                return Cms_ValidateForm(ds);
            });
        });
    </script>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="body" Runat="Server">
    <cms:MessageBox ID="MessageBox" runat="server" />
    <table class="Info" cellspacing="1">
        <tr>
            <td align="right" style="width: 100px">开始时间：</td>
            <td align="center">
                <asp:DropDownList ID="Year1" runat="server"></asp:DropDownList>年<asp:DropDownList ID="Month1" runat="server"></asp:DropDownList>月<asp:DropDownList ID="Day1" runat="server"></asp:DropDownList>日
            </td>
        </tr>
        <tr>
            <td align="right">结束时间：</td>
            <td align="center">
                <asp:DropDownList ID="Year2" runat="server"></asp:DropDownList>年<asp:DropDownList ID="Month2" runat="server"></asp:DropDownList>月<asp:DropDownList ID="Day2" runat="server"></asp:DropDownList>日
            </td>
        </tr>
        <tr>
            <td align="right">县区：</td>
            <td align="left">
                <asp:CheckBoxList ID="Districts" runat="server"></asp:CheckBoxList>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <asp:Button ID="Export" runat="server" Text="确定" 
                     CssClass="Button" onclick="Export_Click" />
            </td>
        </tr>
    </table>
</asp:Content>